package com.skyaims.biz.message;

import java.io.Serializable;

public class Message implements Serializable {

    private static final long serialVersionUID = 4947830947200641395L;

    private int length;

    private byte flag;

    private byte content[];

    private transient Header header;

    private transient Object attach;

    private transient long timestamp = System.currentTimeMillis();

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte getFlag() {
        return flag;
    }

    public void setFlag(byte flag) {
        this.flag = flag;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public Header getHeader() {
        return header;
    }

    public void setHeader(Header header) {
        this.header = header;
    }

    public Object getAttach() {
        return attach;
    }

    public void setAttach(Object attach) {
        this.attach = attach;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

}
